package com.xydream.feign.clients;

import com.xydream.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// @FeignClient(value = "userservice", configuration = DefaultFeignConfiguration.class) 基于Java代码来修改日志级别 局部生效
@FeignClient(value = "userservice")
public interface UserClient {

    @GetMapping("/user/{id}")
    User queryById(@PathVariable("id") Long id);
}
